package com.spark.lola.entity.pur;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.mybatis.entity.BaseModel;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 采购支出单
 * </p>
 *
 * @author dengyejun
 * @since 2020-06-24
 */
@TableName("pur_order_expenses")
@ApiModel(value="OrderExpenses对象", description="采购支出单")
public class OrderExpenses extends BaseModel implements Serializable {
    private static final long serialVersionUID=1L;
    public OrderExpenses(){}

    public OrderExpenses(OrderInfo orderInfo){
        this.no = orderInfo.getNo();
    }

    @ApiModelProperty(value = "订单号")
    private String no;

    @ApiModelProperty(value = "订单报价")
    private BigDecimal orderPrice;

    @ApiModelProperty(value = "运费")
    private BigDecimal freight;

    @ApiModelProperty(value = "罚款")
    private BigDecimal penalty;

    @ApiModelProperty(value = "业务费")
    private BigDecimal expense;

    @ApiModelProperty(value = "其他")
    private BigDecimal other;

    @ApiModelProperty(value = "利润")
    private BigDecimal profit;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String creator;

    @TableField(fill = FieldFill.INSERT)
    private Long creatorId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updator;

    @ApiModelProperty(value = "完成时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }
    
    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }
    
    public BigDecimal getFreight() {
        return freight;
    }

    public void setFreight(BigDecimal freight) {
        this.freight = freight;
    }
    
    public BigDecimal getPenalty() {
        return penalty;
    }

    public void setPenalty(BigDecimal penalty) {
        this.penalty = penalty;
    }
    
    public BigDecimal getExpense() {
        return expense;
    }

    public void setExpense(BigDecimal expense) {
        this.expense = expense;
    }
    
    public BigDecimal getOther() {
        return other;
    }

    public void setOther(BigDecimal other) {
        this.other = other;
    }
    
    public BigDecimal getProfit() {
        return profit;
    }

    public void setProfit(BigDecimal profit) {
        this.profit = profit;
    }
    
    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    
    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdator() {
        return updator;
    }

    public void setUpdator(String updator) {
        this.updator = updator;
    }


    @Override
    public String toString() {
        return "OrderExpenses{" +
            "no=" + no +
            ", orderPrice=" + orderPrice +
            ", freight=" + freight +
            ", penalty=" + penalty +
            ", expense=" + expense +
            ", other=" + other +
            ", profit=" + profit +
            ", creator=" + creator +
            ", creatorId=" + creatorId +
            ", createTime=" + createTime +
            ", updator=" + updator +
            ", updateTime=" + updateTime +
        "}";
    }
}
